<!DOCTYPE html>
<html>
<head>
    <title>奖励金规则</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("bonusRule:sellerbonusrule:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("bonusRule:sellerbonusrule:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("bonusRule:sellerbonusrule:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <div style="width: 500px;padding: 10px">
            <el-form :model="sellerBonusRule" :rules="rules" ref="sellerBonusRuleForm" label-width="100px" size="small" class="demo-ruleForm">
                <el-form-item label="奖励金倍数" prop="multiple">
                    <el-input v-model.number="sellerBonusRule.multiple"></el-input>
                </el-form-item>

                <el-form-item label="起止时间" prop="startEndTime" class="is-required">
                    <el-date-picker
                            v-model="startEndTime"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            value-format="yyyy-MM-dd HH:mm:ss"
                            :picker-options="pickerStartEndTime"
                    >
                    </el-date-picker>
                </el-form-item>


                <el-form-item>
                    <el-button type="primary" @click="saveOrUpdate('sellerBonusRuleForm')">立即创建</el-button>
                    <el-button @click="reload">返回</el-button>
                </el-form-item>
            </el-form>

        </div>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/bonusRule/sellerbonusrule.js?_${.now?long}"></script>
</body>
</html>